#ifndef __MALL_MANAGER_H__
#define __MALL_MANAGER_H__

struct MallCSVInfo
{
	Int32			csv_id;
	Int32			type;
	Int32			item_id;
	Int32			price;

	MallCSVInfo()
	{
		csv_id = 0;
		type = 0;
		item_id = 0;
		price = 0;
	}
};

class MallManager:public singleton<MallManager>
{
public:
	enum
	{
		MALL_TYPE_INGOT = 0,
		MALL_TYPE_MONEY = 1,
		MALL_TYPE_HONOUR = 2,
	};
public:
	MallManager();
	virtual ~MallManager();

	void loadMallCSV();
	MallCSVInfo* GetMallCSVInfo(Int32 type,Int32 csv_id);
private:
	CSVReader m_csvReader;
	std::map<Int32,MallCSVInfo> m_mapMallIngotCSV;
	std::map<Int32,MallCSVInfo> m_mapMallMoneyCSV;
	std::map<Int32,MallCSVInfo> m_mapMallHonourCSV;
};
#endif
